Homework

In the cell below there is a function called "call me". For homework I want you to call this function with several arguments such that it returns the string:

"Dave and Jerry went to the cheese factory."

In [4]:
def call_me(a, f, d, b="", c="cheese", e=False):
    if e == True:
        return "{} and {} went to the {}{} {}.".format(a, b, c, d, f)
    else:
        return "YOU SHALL NOT PASS"

## Solution:

call_me("Dave", "factory", "", b="Jerry", e=True)


Out[4]:
'Dave and Jerry went to the cheese factory.'

In [ ]: